#include "..\client\RC4.h"

int main(int argc, char* argv[])
{
    RC4 test;

    u_char in[64] = "abcdefghijklmnopqrstuvwxyzfuckabcdefghijklmnopqrstuvwxyz";

    printf("original  :%s\n",in);
    test.encrypt(in, in, 64);
    printf("encrypted :%s\n",in);
    for (int i = 0; i < 64; i++)
    {
        printf("%02x ",in[i]);
        if (i != 0 && i %16 == 0)
        {
            printf("\n");
        }
    }
    printf("\n");

    test.decrypt(in, in, 64);
    printf("decrypted :%s\n",in);
    for (int i = 0; i < 64; i++)
    {
        printf("%02x ",in[i]);
        if (i != 0 &&i %16 == 0)
        {
            printf("\n");
        }
    }
    printf("\n");

    system("pause");
    
}